package com.rk.kbk.dao;

import com.rk.kbk.model.EachPicture;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @EachPictureDao
 * @广告轮播图Dao
 * @version : Ver 1.0
 */
public interface EachPictureDao extends JpaRepository<EachPicture, Long>,JpaSpecificationExecutor {
    List<EachPicture> findByTypeAndDestatusOrderByUptDatetimeAsc(Integer type, Integer destatus);
    List<EachPicture> findByTypeOrderByUptDatetimeAsc(Integer type);
    List<EachPicture> findByDestatusOrderByUptDatetimeAsc(Integer destatus);
    List<EachPicture> findByDestatus(Integer destatus);
    List<EachPicture> findByDestatusAndTypeAndAdvertType(Integer destatus,Integer type,Integer advertType);


}
